2003-12-07 Tor Lillqvist <tml@iki.fi>
+ * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
+ return value from SendMessage(WM_SETICON). That is the old
+ icon. Fixes GDI resource leak. (#128559, Tim Evans)
+
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
have a pointer grab active with a grab cursor set, destroy that
cursor to avoid a GDI resource leak. (#128410, Tim Evans)
2003-12-07 Tor Lillqvist <tml@iki.fi>
+ * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
+ return value from SendMessage(WM_SETICON). That is the old
+ icon. Fixes GDI resource leak. (#128559, Tim Evans)
+
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
have a pointer grab active with a grab cursor set, destroy that
cursor to avoid a GDI resource leak. (#128410, Tim Evans)
2003-12-07 Tor Lillqvist <tml@iki.fi>
+ * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
+ return value from SendMessage(WM_SETICON). That is the old
+ icon. Fixes GDI resource leak. (#128559, Tim Evans)
+
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
have a pointer grab active with a grab cursor set, destroy that
cursor to avoid a GDI resource leak. (#128410, Tim Evans)
2003-12-07 Tor Lillqvist <tml@iki.fi>
+ * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
+ return value from SendMessage(WM_SETICON). That is the old
+ icon. Fixes GDI resource leak. (#128559, Tim Evans)
+
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
have a pointer grab active with a grab cursor set, destroy that
cursor to avoid a GDI resource leak. (#128410, Tim Evans)
2003-12-07 Tor Lillqvist <tml@iki.fi>
+ * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
+ return value from SendMessage(WM_SETICON). That is the old
+ icon. Fixes GDI resource leak. (#128559, Tim Evans)
+
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
have a pointer grab active with a grab cursor set, destroy that
cursor to avoid a GDI resource leak. (#128410, Tim Evans)
}
#endif
- hIcon = (HICON)SendMessage (GDK_WINDOW_HWND (window), WM_SETICON, ICON_BIG, (LPARAM)hIcon);
+ SendMessage (GDK_WINDOW_HWND (window), WM_SETICON, ICON_BIG, (LPARAM)hIcon);
if (impl->hicon)
GDI_CALL (DestroyIcon, (impl->hicon));
impl->hicon = hIcon;
/* reseting to default icon */
if (impl->hicon)
{
- hIcon = (HICON)SendMessage (GDK_WINDOW_HWND (window), WM_SETICON, ICON_BIG, 0);
+ SendMessage (GDK_WINDOW_HWND (window), WM_SETICON, ICON_BIG, 0);
GDI_CALL (DestroyIcon, (impl->hicon));
impl->hicon = NULL;
}